/**
 * Created by damir.ismailov on 15/12/2014.
 */
package simple.view {
	import com.samoiloff.framework.view.AbstractView;

	import flash.display.Sprite;

	import simple.SimpleComponent;
	import simple.model.SimpleModel;

	public class SimpleView extends AbstractView {

		private var _rectangle : Sprite;

		public function SimpleView(component:SimpleComponent, model:SimpleModel) {
			super(component, model);

			_rectangle = new Sprite();
			_rectangle.graphics.beginFill(0x33aa33, 1);
			_rectangle.graphics.drawRect(0,0,100,100);
			_rectangle.graphics.endFill();

			_component.addChild(_rectangle);
		}

		public function get rectangle() : Sprite {
			return _rectangle;
		}
	}
}
